package com.openbravo.pos.payment;

import com.openbravo.pos.customers.CustomerInfoExt;
import com.openbravo.pos.forms.AppLocal;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class JPaymentRefund extends JPanel
  implements JPaymentInterface
{
  private JPaymentNotifier m_notifier;
  private double m_dTotal;
  private String m_sName;
  private JLabel jLabel1;

  public JPaymentRefund(JPaymentNotifier paramJPaymentNotifier, String paramString)
  {
    this.m_notifier = paramJPaymentNotifier;
    this.m_sName = paramString;
    initComponents();
  }

  public void activate(CustomerInfoExt paramCustomerInfoExt, double paramDouble, String paramString)
  {
    this.m_dTotal = paramDouble;
    this.m_notifier.setStatus(true, true);
  }

  public PaymentInfo executePayment()
  {
    return new PaymentInfoTicket(this.m_dTotal, this.m_sName);
  }

  public Component getComponent()
  {
    return this;
  }

  private void initComponents()
  {
    this.jLabel1 = new JLabel();
    this.jLabel1.setText(AppLocal.getIntString("message.paymentcashneg"));
    add(this.jLabel1);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.JPaymentRefund
 * JD-Core Version:    0.6.0
 */